<template>
  <div style="background-color:#999;margin-top:20px;padding:20px">
      <h2>Son2</h2>
      <span>小明每次花100元<button @click="$emit('update:money',money-100)">花钱</button>爸爸还剩{{money}}元</span>
  </div>
</template>

<script>
export default {
name:'Son2',
props:['money'],
data(){
    return{
        mo:this.money
    }
}
}
</script>

<style>

</style>